#ifndef __BSP_DEVICE_H__
#define __BSP_DEVICE_H__

#include "bsp_config.h"

typedef enum
{
	PAPER_STATE_NORMAL = 0,
	PAPER_STATE_LACK,
}paper_state_e;

typedef enum
{
	PRINT_STATE_INIT = 0,
	PRINT_STATE_START,
	PRINT_STATE_WORKING,
	PRINT_STATE_FINISH,
}print_state_e;

typedef struct 
{
	uint8_t battery;
	uint8_t temperature;
	paper_state_e paper_state;
	print_state_e print_state;
	bool ble_finish;
}device_state_t;

device_state_t *get_device_state(void);
void set_device_paper(paper_state_e state);
void set_device_print(print_state_e state);
void set_ble_finish(bool state);
void bsp_device_init(void);

#endif
